import utilsModule from "./libs/utils";

var obj1 = {
  a: 1,
  b: 2,
};
var obj2 = {
  c: 3,
  c: 4,
};

function test(user, car) {
  this.c = 'c';

  console.log(this, arguments);
  console.log(user + "刚买了一辆" + car + "车");

  return "Over";
}

test.prototype.myLove = "lisi";

//使用：用函数原型上自定义的方法执行即可
var t = test.myBind(obj1, "rose", "jack");

t();
//{a: 1, b: 2} Arguments(2) ['rose', 'jack', callee: (...), Symbol(Symbol.iterator): ƒ]
var t1 = new t();
//test {} Arguments(2) ['rose', 'jack', callee: (...), Symbol(Symbol.iterator): ƒ]

console.log(t1.myLove);